package com.wanxi.service.impl;

import com.wanxi.feign.UserFeignClient;
import com.wanxi.result.CommonResult;
import com.wanxi.service.FrontLoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class FrontLoginServiceImpl implements FrontLoginService {

    @Autowired
    private UserFeignClient userFeignClient;

    @Override
    public CommonResult login(String phoneNumber, String password, String code) {
        return userFeignClient.login(phoneNumber,password,code);
    }

    @Override
    public CommonResult updatePassword(Long id, String password, String newPassword) {
        return userFeignClient.updatePassword(id,password,newPassword);
    }
}
